package domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student {
    private Integer id;
    private String studentNum;
    private String classNum;
    private String name;
    private String phone;
    private String email;
    private Byte sex;
    private Date createTime;
    private Date modifyTime;

    private Map<String,Double> scoreMap;//学科-成绩
    private Classes classes;

    @Override
    public String toString() {
        return "Student{" +
                "studentNum='" + studentNum + '\'' +
                ", classNum='" + classNum + '\'' +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", sex=" + sex +
                ", createTime=" + createTime +
                ", modifyTime=" + modifyTime +
                '}';
    }
}
